import request from '@/utils/request'
// 获取-部门列表
export function getDepartmentlist() {
  return request({
    url: '/company/department',
    method: 'get'
  })
}
// 获取-部门负责人列表
export function getUsersimple() {
  return request({
    url: '/sys/user/simple',
    method: 'get'
  })
}
// 新增-部门
export function postDepartment(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data: data
  })
}
// 获取-部门详情
export function getDepartment(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'get'
  })
}
// 修改-部门详情
export function putDepartment(data) {
  return request({
    url: `/company/department/${data.id}`,
    method: 'put',
    data: data
  })
}
// 删除-部门详情
export function deleteDepartment(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'delete'
  })
}
